package cn.ztydata.teachingsystem.heaven.web.dto;

import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 教师团队dto
 * Created by chenxin on 2014/12/11.
 */
public class TeacherTeamDto {
    @NotNull
    @Min(value = 1, message = "教师ID不合法")
    private Long teacherId; //教师ID
    @NotNull
    @Min(value = 1, message = "课程ID不合法")
    private Long classId; //课程ID
    @NotNull
    @Range(min = 1, max = 2, message = "团队角色不合法")
    private Integer role; //团队角色

    //added at 2015/4/2 by wyh
    private String name; //教师名字
    private String photo; //教师头像照片

    private TeamMemberDto teacherInfo; //教师信息

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    public Long getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(Long teacherId) {
        this.teacherId = teacherId;
    }

    public Long getClassId() {
        return classId;
    }

    public void setClassId(Long classId) {
        this.classId = classId;
    }

    public TeamMemberDto getTeacherInfo() {
        return teacherInfo;
    }

    public void setTeacherInfo(TeamMemberDto teacherInfo) {
        this.teacherInfo = teacherInfo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }
}
